package com.engine.zzworkflow.service.Impl;

import com.engine.core.impl.Service;
import com.engine.zzworkflow.cmd.SaveBusinessVouchersCmd;
import com.engine.zzworkflow.cmd.sendBeCurrentBusinessCmd;
import com.engine.zzworkflow.service.SendBusinessService;
import weaver.hrm.User;

import java.util.Map;

public class SendBusinessServiceImpl extends Service implements SendBusinessService {

    @Override
    public Map<String, Object> sendBusiness(User user,Map<String, Object> params) {
        return commandExecutor.execute(new sendBeCurrentBusinessCmd(user,params));
    }


    @Override
    public Map<String, Object> saveBusinessVouchers(Map<String, Object> params) {
        return commandExecutor.execute(new SaveBusinessVouchersCmd(params));
    }
}
